package
{
	import fl.controls.TextArea;
	
	import flash.display.Sprite;
	
	import kr.efusioni.debuger.core.DebugerCoreReceive;
	import kr.efusioni.debuger.event.DebugerEvent;

	public class Debuger_Web extends Sprite
	{
		public var area: TextArea;
		
		private var receiver: DebugerCoreReceive;
		public function Debuger_Web()
		{
			receiver = new DebugerCoreReceive ();
			receiver.addEventListener( DebugerEvent.DATA_RECEIVED, receiveEH );
		}
		
		private function receiveEH ( e: DebugerEvent ): void
		{
			area.appendText( e.data.msg +" : " + e.data.type +" : " + e.data.color + "\n" );
		}
	}
}